<?php

/* 
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
$dir = dirname(__FILE__);
//echo"$dir";//F:\phpStudy\WWW\myphp\indexadmin
define("DOCMENT_ROOT",$dir);
$m= isset($_GET["m"])?$_GET["m"]:"index"; //模块
$c=isset($_GET["c"])?$_GET["c"]:"user"; //控制
$a=isset($_GET["a"])?$_GET["a"]:"register"; //方法
require "./{$m}/controller/{$c}Controller.class.php";

$name=$c."Controller";
$object= new $name();
$object->$a();






